QT       += core gui network

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17
msvc{
QMAKE_CFLAGS += /utf-8
QMAKE_CXXFLAGS += /utf-8
}

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    addfrienddialog.cpp \
    clientdisktcpsocket.cpp \
    filelistitem.cpp \
    filewidget.cpp \
    friend.cpp \
    friendlistitem.cpp \
    friendlistwidget.cpp \
    funclistitem.cpp \
    main.cpp \
    operatewidget.cpp \
    protocol.cpp \
    threadfileio.cpp \
    tinydiskclient.cpp \
    utils.cpp

HEADERS += \
    addfrienddialog.h \
    clientdisktcpsocket.h \
    filelistitem.h \
    filewidget.h \
    friend.h \
    friendlistitem.h \
    friendlistwidget.h \
    funclistitem.h \
    operatewidget.h \
    protocol.h \
    threadfileio.h \
    tinydiskclient.h \
    utils.h

FORMS += \
    addfrienddialog.ui \
    filelistitem.ui \
    filewidget.ui \
    friend.ui \
    friendlistitem.ui \
    friendlistwidget.ui \
    funclistitem.ui \
    operatewidget.ui \
    tinydiskclient.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

RESOURCES += \
    config.qrc \
    img.qrc
